<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>CMS</title>
    <link href="__CSS__/common.css" rel="stylesheet"/>
    <link href="__CSS__/right.css" rel="stylesheet"/>
    <link rel="stylesheet" href="__INC__/form/css/zebra_form.css" type="text/css">
    <link href="__CSS__/ui/jquery-ui.css" type="text/css" rel="stylesheet"/>
    <link rel="stylesheet" href="__INC__/kindeditor/themes/default/default.css"/>
    <script type="text/javascript" language="javascript" src="__JS__/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="__JS__/ui/jquery-ui-datepicker.js"></script>
    <script charset="utf-8" src="__INC__/kindeditor/kindeditor.js"></script>
    <script charset="utf-8" src="__INC__/kindeditor/lang/zh_CN.js"></script>
    <script charset="utf-8" src="__JS__/common.js"></script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            $(".table_list tr").mouseover(function () {
                $(this).addClass("one");
            });
            $(".table_list tr").mouseout(function () {
                $(this).removeClass("one");
            });
        });
    </script>
    <style type="text/css">
        #vote_tj {
            margin: 0px 20px;
        }
        #vote_tj tr {
            height: 20px;
        }
        #vote_tj th {
            text-align: left;
        }
        #vote_tj td {
            padding-left: 20px;
        }
        #vote_tj .tj_bar {
        }
        .td_left {
            text-align: left;
            padding-left: 20px;
        }
    </style>
</head>
<body>
<!--右侧区域 begin-->
<div class="right">
    <!--当前位置 begin-->
    <include file='common:crumbs'/>
    <!--当前位置 end-->
    <!--主体区域 begin-->
    <div class="container">
        <div class="alert_div">
            <h4 class="alert_info"><span class="welcome">{$welcome}</span>您现在的位置是：{$current} </h4>
            <h4 class="alert_what" style="display:none;"></h4>
        </div>
        <!--样式一 begin-->
        <div class="stats">
            <div class="lm_title">
                <div class="lm_title_l"><em>操作面板</em></div>
            </div>
            <div class="lm_content">
                <div id="panel">
                    <div class="infos_left">
                        <form action="" method="get" onsubmit="return checkSub()">
                            <input type="hidden" name="id" value="{$id}"/>
                            <table class="Zebra_Form">
                                <tr class="row">
                                    <td><label>开始时间:</label></td>
                                    <td><input type="text" name="sdate" id="sdate" value="{$sdate}" class="text date" readonly/></td>
                                    <td><label>结束时间:</label></td>
                                    <td><input type="text" name="edate" id="edate" value="{$edate}" class="text date" readonly/></td>
                                    <td><input type="submit" class="button" value="确定"/></td>
                                    <td><input type="button" class="button" onclick="javascript:location.href='__GROUP__/votetype/tj?id={$id}'" value="统计"/></td>
                                    <td><input type="button" class="button" onclick="javascript:location.href='__GROUP__/votetype/show'" value="返回"/></td>
                                </tr>
                            </table>
                        </form>
                    </div>
                    <div class="clear"></div>
                </div>
            </div>
            <div class="lm_bottom">
                <div class="lm_bottom_l"><em></em></div>
            </div>
        </div>
        <!--样式一 end-->
        <!--样式一 begin-->
        <div class="stats">
            <div class="lm_title">
                <div class="lm_title_l"><em>{$votetypeArr['title']}</em></div>
            </div>
            <div class="lm_table">
                <table cellpadding="0" cellspacing="0" width="100%" class="table_list">
                    <tr class="title" align="left">
                        <td width="200px">科室</td>
                        <td width="100px">时间</td>
                        <td>建议和意见</td>
                    </tr>
                    <volist name='list' id='vo'>
                        <tr class="tr_line">
                            <td colspan="10">
                                <div></div>
                            </td>
                        </tr>
                        <tr align="center">
                            <td class="td_left">{$vo.ks}</td>
                            <td>{:date('Y-m-d H:i:s',$vo['time'])}</td>
                            <td class="td_left">{$vo.remark}</td>
                        </tr>
                    </volist>
                </table>
            </div>
            <div class="lm_table_bottom">
                <div class="lm_table_bottom_l"><em>
                    <div class="select_btn"></div>
                    <div class="page">{$page}</div>
                    <div class="clear"></div>
                </em>
                </div>
            </div>
        </div>
        <!--样式一 end-->
    </div>
    <!--主体区域 end-->
</div>
<!--右侧区域  end-->
</body>
<script>
    $(function () {
        $(".date").datepicker({yearRange: "1949:2050"});
    });

    function checkSub() {
        if ($("#sdate").val() == '' || $("#edate").val() == '') {
            jl_notify(2, "请选择开始时间和结束时间！");
            return false;
        }
        var starttime = new Date(($("#sdate").val()).replace(/-/g, "/"));
        var endtime = new Date(($("#edate").val()).replace(/-/g, "/"));
        if (endtime < starttime) {
            jl_notify(2, "结束时间应该大于开始时间");
            return false;
        }
        else {
            return true;
        }
    }
</script>
</html>